import 'package:flutter/material.dart';
import 'package:flutterclue/view/LoadingDialogView.dart';

class ShowDialogUtil {
  static void show(String content, BuildContext context) {
    showDialog<Null>(
        context: context, //BuildContext对象
        barrierDismissible: false,
        builder: (BuildContext context) {
          return new LoadingDialog(
            //调用对话框
            text: content,
          );
        });
  }
}
